<?php

declare (strict_types = 1);

namespace auth;

class NewAccessToken
{
    /**
     * The access token instance.
     *
     * @var \auth\AccessToken
     */
    public $accessToken;

    /**
     * The plain text version of the token.
     *
     * @var string
     */
    public $plainTextToken;

    /**
     * Create a new access token result.
     *
     * @param  \auth\AccessToken  $accessToken
     * @param  string  $plainTextToken
     */
    public function __construct(AccessToken $accessToken, string $plainTextToken)
    {
        $this->accessToken = $accessToken;
        $this->plainTextToken = $plainTextToken;
    }
}
